package com.ruoyi.biz.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;

import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)   //忽略掉xml里不关注的element
public class Project {
    @JacksonXmlProperty(isAttribute = true)   //name是project的attribute属性，不是value
    private String name;
    @JsonProperty("poject")
    @JacksonXmlElementWrapper(useWrapping = false)
    private List<Project> poject;
}